package File;

import java.io.File;
import java.io.IOException;

public class Demo6 {
    public static void main(String[] args) throws IOException, InterruptedException {
        File file = new File("./test.txt");
        System.out.println(file.exists());
//        file.delete();
//        Thread.sleep(1000);
        System.out.println(file.createNewFile());
        Thread.sleep(5000);
        System.out.println(file.getCanonicalPath());
        Thread.sleep(5000);//
        file.deleteOnExit();

    }
}
